const fs = require('fs-extra');

fs.writeFileSync('./2.txt', 'b', 'utf8');